#div1 {
    background-color: aquamarine;
    width: 500px;
    height: 500px;
}
.p1{
    text-align: center;
}
.container{
    height: 500px;
    width: 600px;
    background-color: orange;
}
.container div{
    background-color: red;
    margin-top: 20px;
    margin-left: 20px;
    height: 100px;
    width: 100px;
    float: right;
}
.container div.item2{
    float: left;
}